{include file="layout/header" title="关注列表" /}
{include file="layout/sidebar" /}
<div class="content-wrapper">
    <!-- Content Header (Page header) -->
    <section class="content-header">
        <h1>
            关注管理
            <small>关注列表</small>
        </h1>
        <ol class="breadcrumb">
            <li><a href="#"><i class="fa fa-dashboard"></i> 关注管理</a></li>
            <li class="active">关注列表</li>
        </ol>
    </section>

    <!-- Main content -->
    <section class="content">
        <!-- /.box -->
        <div class="box">
            <div class="box-header with-border">
                <h3 class="box-title">关注列表 共有<strong style="color:red;">{$userCount}</strong>个粉丝 <a href="{:url('User/update_list')}" class="badge bg-green">同步用户</a></h3>
            </div>
            <!-- /.box-header -->
            <div class="box-body">
                 <!-- search form -->
                <form action="" method="get" class="sidebar-form0" style="width:80%;margin: 0 auto;">
                    <div class="input-group">                        
                        <input type="text" name="q" class="form-control" value="{$q ? $q : '';}" placeholder="请输入昵称...">
                        <span class="input-group-btn">
                            <button type="submit" id="search-btn" class="btn btn-flat">
                                <i class="fa fa-search"></i>
                            </button>
                        </span>
                    </div>
                </form>
                <!-- /.search form -->
                <table class="table table-bordered">
                    <tr>
                        <th>ID</th>
                        <th>微信openid</th>
                        <th>昵称</th>
                        <th>性别</th>
                        <th>国家</th>
                        <th>省份</th>
                        <th>城市</th>
                        <th>地区</th>
                        <th>来源</th>
                        <th>标签</th>
                        <th>头像</th>
                        <th>关注时间</th>
                        <th>会员状态</th>
                    </tr>
                    {volist name='list' id='user'}
                    <tr>
                        <td>{$user.id}</td>
                        <td>{$user.openid}</td>
                        <!--<td>{:base64_decode($user.nickname)}</td>-->
						<td>{$user.nickname}</td>
                        <td>{$user.sex}</td>
                        <td>{$user.country}</td>
                        <td>{$user.province}</td>
                        <td>{$user.city}</td>
                        <td>{$user.district}</td>
                        <td>{$user.scene}</td>
                        <td>{$user.tagid}</td>
                        <td><img src="{$user.headimgurl}" width="25px" height="25px"></td>
                        <td>{$user['subscribe']|date="Y/m/d H:i:s",###}</td>
                        <td>{:$user.status === 1 ? '已绑定':'未绑定'}</td>
                    </tr>
                    {/volist}
                </table>
            </div>
            <!-- /.box-body -->
            <div class="box-footer clearfix">
                <ul class="pagination pagination-sm no-margin pull-right">
                    {$list->render()}
                </ul>
            </div>
        </div>
        <!-- /.box -->
    </section>
    <!-- /.content -->
</div>
<!-- /.content-wrapper -->

{include file="layout/footer" /}